import crypto from 'crypto-js'
const SECRET_KRY = 'www.talebase.com'
export default function (str) {
  var key = crypto.enc.Utf8.parse(SECRET_KRY);
  var srcs = crypto.enc.Utf8.parse(str);
  var encrypted = crypto.AES.encrypt(srcs, key, { mode: crypto.mode.ECB, padding: crypto.pad.Pkcs7 });
  return encrypted.toString()
}